<script setup>
import { onMounted, ref, getCurrentInstance, inject, nextTick } from 'vue';
defineProps({
    msg: String
});
const message = inject('message');
const webSiteTemplate = inject('webSiteTemplate');
const count = ref(0);
const webTakeVal = ref('默认值');
const pageInfo = ref({
    currentPage: 1,
    pageSize: 10,
    total: 100
});
onMounted(() => {
    webSiteTemplate.webTake2().then((res) => {
        webTakeVal.value = res + 'haha';
    });
});
const pageChange = (page) => {
    // console.log('pageChange:pageInfo', page);
    if (page.currentPage) {
        pageInfo.value.currentPage = page.currentPage;
    }
    if (page.pageSize) {
        pageInfo.value.pageSize = page.pageSize;
    }
};
const testMessage = () => {
    message.suc('hello');
};
</script>

<template>
    <div class="hello-world-wrap">
        <div class="item">{{ webTakeVal }}</div>
        <div class="item">const webSiteTemplate = inject('webSiteTemplate');</div>
        <div class="item">webSiteTemplate.webTake2().then((res) => { // console.log('proxy结果',res); webTakeVal.value = res + 'haha'; });</div>
    </div>
</template>
<style scoped>
.hello-world-wrap {
    height: 1000px;
}
.hello-world-wrap > .item {
    height: 40px;
}
</style>
